package com.groupbuying.payconsumer.connector;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Service;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.Map;

/**
 * 余额查询接口中心
 */
@Service
@FeignClient("service-financial")
public interface FinancialFegin  {

    /**
     * 获取余额支付信息，主动查询
     * @param requestStr  第三方支付id
     * @return  支付信息
     */
    @PostMapping("/financialBalancePay/balancePayQuery")
    Map<String,Object> balancePayQuery(@RequestParam(name="requestStr") String requestStr);

    /**
     * 获取积分订单信息，主动查询
     *
     * @param requestMap
     * @return java.util.Map<java.lang.String,java.lang.Object>
     */
    @PostMapping("/gyintegralpay/intergralpayQuery")
    Map<String,Object> intergralpayQuery(@RequestParam Map<String,Object> requestMap);
}
